package String_demo;

public class StringValueOf {
    public static void main(String[] args) {
        /**
         * 静态方法valueOf():
         * 作用: 将其他类型转换为String，常用的基本类型转换.
         *
         */
        int a1 = 654321;
        String a2 = "\t" + a1 + "";
        System.out.println(a2);

        int a = 123456;
        String str = String.valueOf(a);
        System.out.println(str);

        double b = 66.66;
        String str1 = String.valueOf(b);
        System.out.println(str1);

        str = a + "789";
        System.out.println(str);


    }
}
